home *** CD-ROM | disk | FTP | other *** search
-
-
-
- XXXXmmmmTTTToooogggggggglllleeeeBBBBuuuuttttttttoooonnnn((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmTTTToooogggggggglllleeeeBBBBuuuuttttttttoooonnnn((((3333XXXX))))
-
-
-
- NNNNAAAAMMMMEEEE
- _X_m_T_o_g_g_l_e_B_u_t_t_o_n - The ToggleButton widget class
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- #include <Xm/ToggleB.h>
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- ToggleButton sets nontransitory state data within an
- application. Usually this widget consists of an indicator
- (square or diamond or circle) with either text or a pixmap
- on one side of it. However, it can also consist of just
- text or a pixmap without the indicator.
-
- The toggle graphics display a _1-_o_f-_m_a_n_y or _N-_o_f-_m_a_n_y
- selection state. When a toggle indicator is displayed, a
- square with or without a check mark indicator shows an _N-
- _o_f-_m_a_n_y selection state and a diamond or a circle indicator
- shows a _1-_o_f-_m_a_n_y selection state.
-
- ToggleButton implies a selected or unselected state. In the
- case of a label and an indicator, an empty indicator (square
- or diamond or circle shaped) indicates that ToggleButton is
- unselected, and a filled indicator shows that it is
- selected. The indicator may be filled with a check mark or
- the highlight color. In the case of a pixmap toggle,
- different pixmaps are used to display the
- selected/unselected states.
-
- The default behavior associated with a ToggleButton in a
- menu depends on the type of menu system in which it resides.
- By default, _B_S_e_l_e_c_t controls the behavior of the
- ToggleButton. In addition, _B_M_e_n_u controls the behavior of
- the ToggleButton if it resides in a Menu system. The actual
- mouse button used is determined by its RowColumn parent.
-
- To accommodate the toggle indicator when created, Label's
- resource _X_m_N_m_a_r_g_i_n_L_e_f_t may be increased.
-
- CCCCllllaaaasssssssseeeessss
- ToggleButton inherits behavior and resources from _C_o_r_e,
- _X_m_P_r_i_m_i_t_i_v_e, and _X_m_L_a_b_e_l Classes.
-
- The class pointer is _x_m_T_o_g_g_l_e_B_u_t_t_o_n_W_i_d_g_e_t_C_l_a_s_s.
-
- The class name is _X_m_T_o_g_g_l_e_B_u_t_t_o_n.
-
- NNNNeeeewwww RRRReeeessssoooouuuurrrrcccceeeessss
- The following table defines a set of widget resources used
- by the programmer to specify data. The programmer can also
- set the resource values for the inherited classes to set
- attributes for this widget. To reference a resource by name
- or by class in a .Xdefaults file, remove the _X_m_N or _X_m_C
-
-
-
- Page 1 (printed 11/11/03)
-
-
-
-
-
-
- XXXXmmmmTTTToooogggggggglllleeeeBBBBuuuuttttttttoooonnnn((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmTTTToooogggggggglllleeeeBBBBuuuuttttttttoooonnnn((((3333XXXX))))
-
-
-
- prefix and use the remaining letters. To specify one of the
- defined values for a resource in a .Xdefaults file, remove
- the _X_m prefix and use the remaining letters (in either
- lowercase or uppercase, but include any underscores between
- words). The codes in the access column indicate if the
- given resource can be set at creation time (C), set by using
- _X_t_S_e_t_V_a_l_u_e_s (S), retrieved by using _X_t_G_e_t_V_a_l_u_e_s (G), or is
- not applicable (N/A).
-
- XXXXmmmmTTTToooogggggggglllleeeeBBBBuuuuttttttttoooonnnn RRRReeeessssoooouuuurrrrcccceeee SSSSeeeetttt
- NNNNaaaammmmeeee CCCCllllaaaassssssss TTTTyyyyppppeeee DDDDeeeeffffaaaauuuulllltttt AAAAcccccccceeeessssssss
- ________________________________________________________________________________________________________
- XmNarmCallback XmCArmCallback XtCallbackList NULL C
- XmNdisarmCallback XmCDisarmCallback XtCallbackList NULL C
- XmNfillOnSelect XmCFillOnSelect Boolean dynamic CSG
- XmNindicatorOn XmCIndicatorOn Boolean True CSG
- XmNindicatorSize XmCIndicatorSize Dimension dynamic CSG
- XmNindicatorType XmCIndicatorType unsigned char dynamic CSG
- XmNselectColor XmCSelectColor Pixel dynamic CSG
- XmNselectInsensitivePixmap XmCSelectInsensitivePixmap Pixmap XmUNSPECIFIED_PIXMAP CSG
- XmNselectPixmap XmCSelectPixmap Pixmap XmUNSPECIFIED_PIXMAP CSG
- XmNset XmCSet Boolean False CSG
- XmNspacing XmCSpacing Dimension 4 CSG
- XmNvalueChangedCallback XmCValueChangedCallback XtCallbackList NULL C
- XmNvisibleWhenOff XmCVisibleWhenOff Boolean dynamic CSG
-
-
- _X_m_N_a_r_m_C_a_l_l_b_a_c_k
- Specifies the list of callbacks called when the
- ToggleButton is armed. To arm this widget, press the
- active mouse button while the pointer is inside the
- ToggleButton. For this callback, the reason is
- _X_m_C_R__A_R_M.
-
- _X_m_N_d_i_s_a_r_m_C_a_l_l_b_a_c_k
- Specifies the list of callbacks called when
- ToggleButton is disarmed. To disarm this widget, press
- and release the active mouse button while the pointer
- is inside the ToggleButton. This widget is also
- disarmed when the user moves out of the widget and
- releases the mouse button when the pointer is outside
- the widget. For this callback, the reason is
- _X_m_C_R__D_I_S_A_R_M.
-
- _X_m_N_f_i_l_l_O_n_S_e_l_e_c_t
- Fills the indicator with the color specified in
- _X_m_N_s_e_l_e_c_t_C_o_l_o_r and switches the top and bottom shadow
- colors when set to True. Otherwise, it switches only
- the top and bottom shadow colors. The default is set
- to the value of _X_m_N_i_n_d_i_c_a_t_o_r_O_n. When _X_m_N_i_n_d_i_c_a_t_o_r_O_n is
- False, and _X_m_N_f_i_l_l_O_n_S_e_l_e_c_t is set explicitly to True,
- the background is filled with the color specified by
-
-
-
- Page 2 (printed 11/11/03)
-
-
-
-
-
-
- XXXXmmmmTTTToooogggggggglllleeeeBBBBuuuuttttttttoooonnnn((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmTTTToooogggggggglllleeeeBBBBuuuuttttttttoooonnnn((((3333XXXX))))
-
-
-
- _X_m_N_s_e_l_e_c_t_C_o_l_o_r.
-
- _X_m_N_i_n_d_i_c_a_t_o_r_O_n
- Specifies that a toggle indicator is drawn to one side
- of the toggle text or pixmap when set to True. When
- set to False, no space is allocated for the indicator,
- and it is not displayed. If _X_m_N_i_n_d_i_c_a_t_o_r_O_n is True,
- the indicator shadows are switched when the button is
- selected or unselected, but, any shadows around the
- entire widget are not switched. However, if
- _X_m_N_i_n_d_i_c_a_t_o_r_O_n is False, any shadows around the entire
- widget are switched when the toggle is selected or
- unselected.
-
- _X_m_N_i_n_d_i_c_a_t_o_r_S_i_z_e
- Sets the size of the indicator. If no value is
- specified, the size of the indicator is based on the
- size of the label string or pixmap. If the label
- string or pixmap changes, the size of the indicator is
- recomputed based on the size of the label string or
- pixmap. Once a value has been specified for
- _X_m_N_i_n_d_i_c_a_t_o_r_S_i_z_e, the indicator has that size,
- regardless of the size of the label string or pixmap,
- until a new value is specified.
-
- _X_m_N_i_n_d_i_c_a_t_o_r_T_y_p_e
- Specifies if the indicator is a _1-_o_f or _N-_o_f indicator.
- For the _1-_o_f indicator, the value is _X_m_O_N_E__O_F__M_A_N_Y.
- For the _N-_o_f indicator, the value is _X_m_N__O_F__M_A_N_Y.
-
- The look of the ToggleButton visual is controlled by
- the XmDisplay resource _e_n_a_b_l_e_T_o_g_g_l_e_V_i_s_u_a_l. The
- _e_n_a_b_l_e_T_o_g_g_l_e_V_i_s_u_a_l resource defaults to False with the
- following ToggleButton visuals:
-
- +o _X_m_O_N_E__O_F__M_A_N_Y - a shadowed diamond
-
- +o _X_m_N__O_F__M_A_N_Y - a shadowed square
-
- When _e_n_a_b_l_e_T_o_g_g_l_e_V_i_s_u_a_l is True, the ToggleButton
- visuals are:
-
- +o _X_m_O_N_E__O_F__M_A_N_Y - a shadowed circle
-
- +o _X_m_N__O_F__M_A_N_Y - a shadowed square with a check mark when
- set
-
- This resource specifies only the visuals and does not
- enforce the behavior. When the ToggleButton is in a
- RadioBox, the default is _X_m_O_N_E__O_F__M_A_N_Y; otherwise, the
- default is _X_m_N__O_F__M_A_N_Y.
-
-
-
-
- Page 3 (printed 11/11/03)
-
-
-
-
-
-
- XXXXmmmmTTTToooogggggggglllleeeeBBBBuuuuttttttttoooonnnn((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmTTTToooogggggggglllleeeeBBBBuuuuttttttttoooonnnn((((3333XXXX))))
-
-
-
- _X_m_N_s_e_l_e_c_t_C_o_l_o_r
- Allows the application to specify what color fills the
- center of the indicator when it is set. If this color
- is the same as either the top or the bottom shadow
- color of the indicator, a one-pixel-wide margin is left
- between the shadows and the fill; otherwise, it is
- filled completely. This resource's default for a color
- display depends on the value of the XmDisplay resource
- _e_n_a_b_l_e_T_o_g_g_l_e_C_o_l_o_r. If _e_n_a_b_l_e_T_o_g_g_l_e_C_o_l_o_r is False (the
- default), then is a color between the background and
- the bottom shadow color is chosen. When
- _e_n_a_b_l_e_T_o_g_g_l_e_C_o_l_o_r is True, then the select color is the
- highlight color for the widget. For a monochrome
- display, the select color is set to the foreground
- color. To set the background of the button to
- _X_m_N_s_e_l_e_c_t_C_o_l_o_r when _X_m_N_i_n_d_i_c_a_t_o_r_O_n is False, the value
- of _X_m_N_f_i_l_l_O_n_S_e_l_e_c_t must be explicitly set to True.
-
- _X_m_N_s_e_l_e_c_t_I_n_s_e_n_s_i_t_i_v_e_P_i_x_m_a_p
- Specifies a pixmap used as the button face when the
- ToggleButton is selected and the button is insensitive
- if the Label resource _X_m_N_l_a_b_e_l_T_y_p_e is set to _X_m_P_I_X_M_A_P.
- If the ToggleButton is unselected and the button is
- insensitive, the pixmap in _X_m_N_l_a_b_e_l_I_n_s_e_n_s_i_t_i_v_e_P_i_x_m_a_p is
- used as the button face. If no value is specified for
- _X_m_N_l_a_b_e_l_I_n_s_e_n_s_i_t_i_v_e_P_i_x_m_a_p, that resource is set to the
- value specified for _X_m_N_s_e_l_e_c_t_I_n_s_e_n_s_i_t_i_v_e_P_i_x_m_a_p.
-
- _X_m_N_s_e_l_e_c_t_P_i_x_m_a_p
- Specifies the pixmap to be used as the button face if
- _X_m_N_l_a_b_e_l_T_y_p_e is _X_m_P_I_X_M_A_P and the ToggleButton is
- selected. When the ToggleButton is unselected, the
- pixmap specified in Label's _X_m_N_l_a_b_e_l_P_i_x_m_a_p is used. If
- no value is specified for _X_m_N_l_a_b_e_l_P_i_x_m_a_p, that resource
- is set to the value specified for _X_m_N_s_e_l_e_c_t_P_i_x_m_a_p.
-
- _X_m_N_s_e_t
- Represents the state of the ToggleButton. A value of
- false indicates that the ToggleButton is not set. A
- value of true indicates that the ToggleButton is set.
- Setting this resource sets the state of the
- ToggleButton.
-
- _X_m_N_s_p_a_c_i_n_g
- Specifies the amount of spacing between the toggle
- indicator and the toggle label (text or pixmap).
-
- _X_m_N_v_a_l_u_e_C_h_a_n_g_e_d_C_a_l_l_b_a_c_k
- Specifies the list of callbacks called when the
- ToggleButton value is changed. To change the value,
- press and release the active mouse button while the
- pointer is inside the ToggleButton. This action also
-
-
-
- Page 4 (printed 11/11/03)
-
-
-
-
-
-
- XXXXmmmmTTTToooogggggggglllleeeeBBBBuuuuttttttttoooonnnn((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmTTTToooogggggggglllleeeeBBBBuuuuttttttttoooonnnn((((3333XXXX))))
-
-
-
- causes this widget to be disarmed. For this callback,
- the reason is _X_m_C_R__V_A_L_U_E__C_H_A_N_G_E_D.
-
- _X_m_N_v_i_s_i_b_l_e_W_h_e_n_O_f_f
- Indicates that the toggle indicator is visible in the
- unselected state when the Boolean value is True. When
- the ToggleButton is in a menu, the default value is
- False. When the ToggleButton is in a RadioBox, the
- default value is True.
-
- IIIInnnnhhhheeeerrrriiiitttteeeedddd RRRReeeessssoooouuuurrrrcccceeeessss
- ToggleButton inherits behavior and resources from the
- following superclasses. For a complete description of each
- resource, refer to the man page for that superclass.
-
- XXXXmmmmLLLLaaaabbbbeeeellll RRRReeeessssoooouuuurrrrcccceeee SSSSeeeetttt
- NNNNaaaammmmeeee CCCCllllaaaassssssss TTTTyyyyppppeeee DDDDeeeeffffaaaauuuulllltttt AAAAcccccccceeeessssssss
- ___________________________________________________________________________________________________________
- XmNaccelerator XmCAccelerator String NULL CSG
- XmNacceleratorText XmCAcceleratorText XmString NULL CSG
- XmNalignment XmCAlignment unsigned char dynamic CSG
- XmNfontList XmCFontList XmFontList dynamic CSG
- XmNlabelInsensitivePixmap XmCLabelInsensitivePixmap Pixmap XmUNSPECIFIED_PIXMAP CSG
- XmNlabelPixmap XmCLabelPixmap Pixmap XmUNSPECIFIED_PIXMAP CSG
- XmNlabelString XmCXmString XmString dynamic CSG
- XmNlabelType XmCLabelType unsigned char XmSTRING CSG
- XmNmarginBottom XmCMarginBottom Dimension dynamic CSG
- XmNmarginHeight XmCMarginHeight Dimension 2 CSG
- XmNmarginLeft XmCMarginLeft Dimension dynamic CSG
- XmNmarginRight XmCMarginRight Dimension 0 CSG
- XmNmarginTop XmCMarginTop Dimension dynamic CSG
- XmNmarginWidth XmCMarginWidth Dimension 2 CSG
- XmNmnemonic XmCMnemonic KeySym NULL CSG
- XmNmnemonicCharSet XmCMnemonicCharSet String XmFONTLIST_DEFAULT_TAG CSG
- XmNrecomputeSize XmCRecomputeSize Boolean True CSG
- XmNstringDirection XmCStringDirection XmStringDirection dynamic CSG
-
-
- XXXXmmmmPPPPrrrriiiimmmmiiiittttiiiivvvveeee RRRReeeessssoooouuuurrrrcccceeee SSSSeeeetttt
- NNNNaaaammmmeeee CCCCllllaaaassssssss TTTTyyyyppppeeee DDDDeeeeffffaaaauuuulllltttt AAAAcccccccceeeessssssss
- ________________________________________________________________________________________________
- XmNbottomShadowColor XmCBottomShadowColor Pixel dynamic CSG
- XmNbottomShadowPixmap XmCBottomShadowPixmap Pixmap XmUNSPECIFIED_PIXMAP CSG
- XmNforeground XmCForeground Pixel dynamic CSG
- XmNhelpCallback XmCCallback XtCallbackList NULL C
- XmNhighlightColor XmCHighlightColor Pixel dynamic CSG
- XmNhighlightOnEnter XmCHighlightOnEnter Boolean False CSG
- XmNhighlightPixmap XmCHighlightPixmap Pixmap dynamic CSG
- XmNhighlightThickness XmCHighlightThickness Dimension 2 CSG
- XmNnavigationType XmCNavigationType XmNavigationType XmNONE CSG
-
-
-
-
-
- Page 5 (printed 11/11/03)
-
-
-
-
-
-
- XXXXmmmmTTTToooogggggggglllleeeeBBBBuuuuttttttttoooonnnn((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmTTTToooogggggggglllleeeeBBBBuuuuttttttttoooonnnn((((3333XXXX))))
-
-
-
- XmNshadowThickness XmCShadowThickness Dimension dynamic CSG
- XmNtopShadowColor XmCTopShadowColor Pixel dynamic CSG
- XmNtopShadowPixmap XmCTopShadowPixmap Pixmap dynamic CSG
- XmNtraversalOn XmCTraversalOn Boolean True CSG
- XmNunitType XmCUnitType unsigned char dynamic CSG
- XmNuserData XmCUserData XtPointer NULL CSG
-
-
- CCCCoooorrrreeee RRRReeeessssoooouuuurrrrcccceeee SSSSeeeetttt
- NNNNaaaammmmeeee CCCCllllaaaassssssss TTTTyyyyppppeeee DDDDeeeeffffaaaauuuulllltttt AAAAcccccccceeeessssssss
- ______________________________________________________________________________________________________________
- XmNaccelerators XmCAccelerators XtAccelerators dynamic CSG
- XmNancestorSensitive XmCSensitive Boolean dynamic G
- XmNbackground XmCBackground Pixel dynamic CSG
- XmNbackgroundPixmap XmCPixmap Pixmap XmUNSPECIFIED_PIXMAP CSG
- XmNborderColor XmCBorderColor Pixel XtDefaultForeground CSG
- XmNborderPixmap XmCPixmap Pixmap XmUNSPECIFIED_PIXMAP CSG
- XmNborderWidth XmCBorderWidth Dimension 0 CSG
- XmNcolormap XmCColormap Colormap dynamic CG
- XmNdepth XmCDepth int dynamic CG
- XmNdestroyCallback XmCCallback XtCallbackList NULL C
- XmNheight XmCHeight Dimension dynamic CSG
- XmNinitialResourcesPersistent XmCInitialResourcesPersistent Boolean True C
- XmNmappedWhenManaged XmCMappedWhenManaged Boolean True CSG
- XmNscreen XmCScreen Screen * dynamic CG
- XmNsensitive XmCSensitive Boolean True CSG
- XmNtranslations XmCTranslations XtTranslations dynamic CSG
- XmNwidth XmCWidth Dimension dynamic CSG
- XmNx XmCPosition Position 0 CSG
- XmNy XmCPosition Position 0 CSG
-
-
- CCCCaaaallllllllbbbbaaaacccckkkk IIIInnnnffffoooorrrrmmmmaaaattttiiiioooonnnn
- A pointer to the following structure is passed to each
- callback:
- typedef struct
- {
- int rrrreeeeaaaassssoooonnnn;
- _X_E_v_e_n_t **** eeeevvvveeeennnntttt;
- _i_n_t sssseeeetttt;
- } _X_m_T_o_g_g_l_e_B_u_t_t_o_n_C_a_l_l_b_a_c_k_S_t_r_u_c_t;
-
- rrrreeeeaaaassssoooonnnn
- Indicates why the callback was invoked
-
- eeeevvvveeeennnntttt
- Points to the _X_E_v_e_n_t that triggered the callback
-
- sssseeeetttt Reflects the ToggleButton's current state when the
- callback occurred, either True (selected) or False
- (unselected)
-
-
-
-
- Page 6 (printed 11/11/03)
-
-
-
-
-
-
- XXXXmmmmTTTToooogggggggglllleeeeBBBBuuuuttttttttoooonnnn((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmTTTToooogggggggglllleeeeBBBBuuuuttttttttoooonnnn((((3333XXXX))))
-
-
-
- TTTTrrrraaaannnnssssllllaaaattttiiiioooonnnnssss
- XmToggleButton includes translations from Primitive.
- Additional XmToggleButton translations for buttons not in a
- menu system are listed below. These translations may not
- directly correspond to a translation table.
-
- Note that altering translations in #_o_v_e_r_r_i_d_e or #_a_u_g_m_e_n_t
- mode is undefined.
- BDragPress: ProcessDrag()
- BSelect Press: Arm()
- BSelect Release:Select()
- Disarm()
- KHelp: Help()
- KSelect: ArmAndActivate()
-
- XmToggleButton inherits menu traversal translations from
- XmLabel. Additional XmToggleButton translations for
- ToggleButtons in a menu system are listed below. In a menu
- system, _B_M_e_n_u also performs the _B_S_e_l_e_c_t actions. These
- translations may not directly correspond to a translation
- table.
- BSelect Press: BtnDown()
- BSelect Release:BtnUp()
- KHelp: Help()
- KActivate: ArmAndActivate()
- KSelect: ArmAndActivate()
- MAny KCancel: MenuShellPopdownOne()
-
- AAAAccccttttiiiioooonnnn RRRRoooouuuuttttiiiinnnneeeessss
- The XmToggleButton action routines are described below:
-
- _A_r_m():
- If the button was previously unset, this action does
- the following: If _X_m_N_i_n_d_i_c_a_t_o_r_O_n is True, it draws the
- indicator shadow so that the indicator looks pressed;
- if _X_m_N_f_i_l_l_O_n_S_e_l_e_c_t is True, it fills the indicator with
- the color specified by _X_m_N_s_e_l_e_c_t_C_o_l_o_r. If
- _X_m_N_i_n_d_i_c_a_t_o_r_O_n is False, it draws the button shadow so
- that the button looks pressed. If _X_m_N_l_a_b_e_l_T_y_p_e is
- _X_m_P_I_X_M_A_P, the _X_m_N_s_e_l_e_c_t_P_i_x_m_a_p is used as the button
- face. Calls the _X_m_N_a_r_m_C_a_l_l_b_a_c_k callbacks.
-
- If the button was previously set, this action does the
- following: If both _X_m_N_i_n_d_i_c_a_t_o_r_O_n and
- _X_m_N_v_i_s_i_b_l_e_W_h_e_n_O_f_f are True, it draws the indicator
- shadow so that the indicator looks raised; if
- _X_m_N_f_i_l_l_O_n_S_e_l_e_c_t is True, it fills the indicator with
- the background color. If _X_m_N_i_n_d_i_c_a_t_o_r_O_n is False, it
- draws the button shadow so that the button looks
- raised. If _X_m_N_l_a_b_e_l_T_y_p_e is _X_m_P_I_X_M_A_P, the
- _X_m_N_l_a_b_e_l_P_i_x_m_a_p is used as the button face. Calls the
- _X_m_N_a_r_m_C_a_l_l_b_a_c_k callbacks.
-
-
-
- Page 7 (printed 11/11/03)
-
-
-
-
-
-
- XXXXmmmmTTTToooogggggggglllleeeeBBBBuuuuttttttttoooonnnn((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmTTTToooogggggggglllleeeeBBBBuuuuttttttttoooonnnn((((3333XXXX))))
-
-
-
- _A_r_m_A_n_d_A_c_t_i_v_a_t_e():
- If the ToggleButton was previously set, unsets it; if
- the ToggleButton was previously unset, sets it.
-
- In a menu, does the following: Unposts all menus in
- the menu hierarchy. Unless the button is already
- armed, calls the _X_m_N_a_r_m_C_a_l_l_b_a_c_k callbacks. Calls the
- _X_m_N_v_a_l_u_e_C_h_a_n_g_e_d_C_a_l_l_b_a_c_k and _X_m_N_d_i_s_a_r_m_C_a_l_l_b_a_c_k
- callbacks.
-
- Outside a menu, if the button was previously unset,
- this action does the following: If _X_m_N_i_n_d_i_c_a_t_o_r_O_n is
- True, it draws the indicator shadow so that the
- indicator looks pressed; if _X_m_N_f_i_l_l_O_n_S_e_l_e_c_t is True, it
- fills the indicator with the color specified by
- _X_m_N_s_e_l_e_c_t_C_o_l_o_r. If _X_m_N_i_n_d_i_c_a_t_o_r_O_n is False, it draws
- the button shadow so that the button looks pressed. If
- _X_m_N_l_a_b_e_l_T_y_p_e is _X_m_P_I_X_M_A_P, the _X_m_N_s_e_l_e_c_t_P_i_x_m_a_p is used
- as the button face. Calls the _X_m_N_a_r_m_C_a_l_l_b_a_c_k,
- _X_m_N_v_a_l_u_e_C_h_a_n_g_e_d_C_a_l_l_b_a_c_k, and _X_m_N_d_i_s_a_r_m_C_a_l_l_b_a_c_k
- callbacks.
-
- Outside a menu, if the button was previously set, this
- action does the following: If both _X_m_N_i_n_d_i_c_a_t_o_r_O_n and
- _X_m_N_v_i_s_i_b_l_e_W_h_e_n_O_f_f are True, it draws the indicator
- shadow so that the indicator looks raised; if
- _X_m_N_f_i_l_l_O_n_S_e_l_e_c_t is True, it fills the indicator with
- the background color. If _X_m_N_i_n_d_i_c_a_t_o_r_O_n is False, it
- draws the button shadow so that the button looks
- raised. If _X_m_N_l_a_b_e_l_T_y_p_e is _X_m_P_I_X_M_A_P, the
- _X_m_N_l_a_b_e_l_P_i_x_m_a_p is used as the button face. Calls the
- _X_m_N_a_r_m_C_a_l_l_b_a_c_k, _X_m_N_v_a_l_u_e_C_h_a_n_g_e_d_C_a_l_l_b_a_c_k, and
- _X_m_N_d_i_s_a_r_m_C_a_l_l_b_a_c_k callbacks.
-
- _B_t_n_D_o_w_n():
- This action unposts any menus posted by the
- ToggleButton's parent menu, disables keyboard traversal
- for the menu, and enables mouse traversal for the menu.
- It draws the shadow in the armed state and, unless the
- button is already armed, calls the _X_m_N_a_r_m_C_a_l_l_b_a_c_k
- callbacks.
-
- _B_t_n_U_p():
- This action unposts all menus in the menu hierarchy.
- If the ToggleButton was previously set, unsets it; if
- the ToggleButton was previously unset, sets it. It
- calls the _X_m_N_v_a_l_u_e_C_h_a_n_g_e_d_C_a_l_l_b_a_c_k callbacks and then
- the _X_m_N_d_i_s_a_r_m_C_a_l_l_b_a_c_k callbacks.
-
- _D_i_s_a_r_m():
- Calls the callbacks for _X_m_N_d_i_s_a_r_m_C_a_l_l_b_a_c_k.
-
-
-
-
- Page 8 (printed 11/11/03)
-
-
-
-
-
-
- XXXXmmmmTTTToooogggggggglllleeeeBBBBuuuuttttttttoooonnnn((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmTTTToooogggggggglllleeeeBBBBuuuuttttttttoooonnnn((((3333XXXX))))
-
-
-
- _H_e_l_p():
- In a Pulldown or Popup MenuPane, unposts all menus in
- the menu hierarchy and restores keyboard focus to the
- widget that had the focus before the menu system was
- entered. Calls the callbacks for _X_m_N_h_e_l_p_C_a_l_l_b_a_c_k if
- any exist. If there are no help callbacks for this
- widget, this action calls the help callbacks for the
- nearest ancestor that has them.
-
- _M_e_n_u_S_h_e_l_l_P_o_p_d_o_w_n_O_n_e():
- In a toplevel Pulldown MenuPane from a MenuBar, unposts
- the menu, disarms the MenuBar CascadeButton and the
- MenuBar, and restores keyboard focus to the widget that
- had the focus before the MenuBar was entered. In other
- Pulldown MenuPanes, unposts the menu.
-
- In a Popup MenuPane, unposts the menu and restores
- keyboard focus to the widget from which the menu was
- posted.
-
- _P_r_o_c_e_s_s_D_r_a_g():
- Drags the contents of a ToggleButton label, identified
- by pressing _B_D_r_a_g. This action creates a DragContext
- object whose _X_m_N_e_x_p_o_r_t_T_a_r_g_e_t_s resource is set to
- "COMPOUND_TEXT" for a label type of _X_m_S_T_R_I_N_G;
- otherwise, "PIXMAP" if the label type is _X_m_P_I_X_M_A_P.
- This action is undefined for ToggleButtons used in a
- menu system.
-
- This action is disabled if the XmDisplay's
- _e_n_a_b_l_e_U_n_s_e_l_e_c_t_a_b_l_e_D_r_a_g resource is True.
-
- _S_e_l_e_c_t():
- If the pointer is within the button, takes the
- following actions: If the button was previously unset,
- sets it; if the button was previously set, unsets it.
- Calls the _X_m_N_v_a_l_u_e_C_h_a_n_g_e_d_C_a_l_l_b_a_c_k callbacks.
-
- AAAAddddddddiiiittttiiiioooonnnnaaaallll BBBBeeeehhhhaaaavvvviiiioooorrrr
- This widget has the additional behavior described below:
-
- <_E_n_t_e_r_W_i_n_d_o_w>:
- In a menu, if keyboard traversal is enabled, this
- action does nothing. Otherwise, it draws the shadow in
- the armed state and calls the _X_m_N_a_r_m_C_a_l_l_b_a_c_k callbacks.
-
- If the ToggleButton is not in a menu and the cursor
- leaves and then reenters the ToggleButton's window
- while the button is pressed, this action restores the
- button's armed appearance.
-
- <_L_e_a_v_e_W_i_n_d_o_w>:
-
-
-
- Page 9 (printed 11/11/03)
-
-
-
-
-
-
- XXXXmmmmTTTToooogggggggglllleeeeBBBBuuuuttttttttoooonnnn((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmTTTToooogggggggglllleeeeBBBBuuuuttttttttoooonnnn((((3333XXXX))))
-
-
-
- In a menu, if keyboard traversal is enabled, this
- action does nothing. Otherwise, it draws the shadow in
- the unarmed state and calls the _X_m_N_d_i_s_a_r_m_C_a_l_l_b_a_c_k
- callbacks.
-
- If the ToggleButton is not in a menu and the cursor
- leaves the ToggleButton's window while the button is
- pressed, this action restores the button's unarmed
- appearance.
-
- VVVViiiirrrrttttuuuuaaaallll BBBBiiiinnnnddddiiiinnnnggggssss
- The bindings for virtual keys are vendor specific. For
- information about bindings for virtual buttons and keys, see
- _V_i_r_t_u_a_l_B_i_n_d_i_n_g_s(_3_X).
-
- RRRREEEELLLLAAAATTTTEEEEDDDD IIIINNNNFFFFOOOORRRRMMMMAAAATTTTIIIIOOOONNNN
- _C_o_r_e(_3_X), _X_m_C_r_e_a_t_e_R_a_d_i_o_B_o_x(_3_X), _X_m_C_r_e_a_t_e_T_o_g_g_l_e_B_u_t_t_o_n(_3_X),
- _X_m_D_i_s_p_l_a_y(_3_x), _X_m_L_a_b_e_l(_3_X), _X_m_P_r_i_m_i_t_i_v_e(_3_X),
- _X_m_R_o_w_C_o_l_u_m_n(_3_X), _X_m_T_o_g_g_l_e_B_u_t_t_o_n_G_e_t_S_t_a_t_e(_3_X), and
- _X_m_T_o_g_g_l_e_B_u_t_t_o_n_S_e_t_S_t_a_t_e(_3_X).
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Page 10 (printed 11/11/03)
-
-
-
-